#pragma once
#include <shared_mutex>
class pyrwlock {
public:
	void write_lock();
	void write_unlock();
	void read_lock();
	void read_unlock();
private:
	std::shared_mutex lock;
};